﻿<Page x:Class="University.Workshop.Presentation.CollectControl.RegisterPayment"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
	  Title="RegisterPayment" xmlns:my="clr-namespace:University.Workshop.Presentation.ControlWPF" Loaded="Page_Loaded"
      xmlns:ViewsConverter="clr-namespace:University.Workshop.Presentation.ViewsConverter">
    <Grid>
        <Grid Height="563" Width="780" 
          HorizontalAlignment="Center" VerticalAlignment="Top">
            <Path Data="F1M89,500C86.791,500,85,501.791,85,504L85,504L85,538C85,540.209,86.791,542,89,542L89,542L1081,542C1083.209,542,1085,540.209,1085,538L1085,538L1085,504C1085,501.791,1083.209,500,1081,500L1081,500z" Height="50" Margin="20,0,12,459" Stretch="Fill" Stroke="#FFB6BDBA" VerticalAlignment="Bottom">
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF0F9F6" Offset="0" />
                        <GradientStop Color="sc#1, 0.8645034, 0.9386971, 0.9131128" Offset="0.036626586095394487" />
                        <GradientStop Color="sc#1, 0.849580646, 0.919979036, 0.8946999" Offset="0.046193367402403762" />
                        <GradientStop Color="sc#1, 0.8297841, 0.8951477, 0.8702733" Offset="0.052599494473647423" />
                        <GradientStop Color="sc#1, 0.8061086, 0.86545074, 0.8410604" Offset="0.057584354782454161" />
                        <GradientStop Color="sc#1, 0.7912979, 0.8468732, 0.822785735" Offset="0.059999998658895493" />
                        <GradientStop Color="#FFE6EDEA" Offset="0.059999998658895493" />
                        <GradientStop Color="#FFE6EDEA" Offset="1" />
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <TextBlock FontSize="21" FontWeight="Bold" Margin="28,62,0,464" TextWrapping="Wrap" HorizontalAlignment="Left" Width="217"><TextBlock.Effect><DropShadowEffect BlurRadius="1" Color="White" Direction="270" Opacity="0.7" ShadowDepth="1" /></TextBlock.Effect> <Run Language="es-es" Text="Realizar Cobro" /></TextBlock>
            <Button Content="Realizar Cobro" FontWeight="Bold" Foreground="Black" Height="34" Margin="637,62,23,467" Name="RealizarBtn" Click="RealizarBtn_Click" IsEnabled="False" />
            <!--<Button Content="Buscar" Height="23" HorizontalAlignment="Center" Margin="496,85,184,0" Name="SearchBtn" VerticalAlignment="Top" Width="100" Click="SearchBtn_Click" />-->
            <DataGrid HeadersVisibility="None" 
                  AutoGenerateColumns="False"  
                  CanUserAddRows="False"
                  Height="298" 
                  IsReadOnly="True"                   
                  HorizontalAlignment="Center"
                  Margin="68,184,62,0" 
                  Name="ChargeFindedDgv"
                  VerticalAlignment="Top" 
                  Width="650" CanUserResizeColumns="False" CanUserReorderColumns="False" CanUserSortColumns="False">

                <DataGrid.Resources>
                    <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}">Transparent</SolidColorBrush>
                </DataGrid.Resources>
                <DataGrid.RowStyle>
                    <Style TargetType="DataGridRow">
                        <Setter Property="Height" Value="30"/>
                    </Style>
                </DataGrid.RowStyle>

                <DataGrid.Columns>
                    <DataGridTemplateColumn Header="Concepto" Width="350">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding Estructura }" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                    <DataGridTemplateColumn Header="Fecha" Width="120">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding DateGenerated}" ContentStringFormat="{}{0:MM/dd/yyyy}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                    <DataGridTemplateColumn Header="Monto" Width="120">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding PaymentAmount }" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                    <DataGridTemplateColumn Header="Seleccionar" Width="58">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <CheckBox Name="Seleccionados" Click="Seleccionados_Click" />
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>
                </DataGrid.Columns>
            </DataGrid>
            <Rectangle Fill="#43000000" Height="25" HorizontalAlignment="Left" Margin="68,156,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="650" />
            <Label Content="CI del Socio" Height="28" HorizontalAlignment="Left" Margin="72,524,0,0" Name="label2" VerticalAlignment="Top" />
            
            <Label Content="Concepto" Height="28" HorizontalAlignment="Left" Margin="82,161,0,0" Name="ConceptoLbl" VerticalAlignment="Top" Width="54" />
            <Label Content="Fecha" Height="28" HorizontalAlignment="Left" Margin="422,161,0,0" Name="FechaLbl" VerticalAlignment="Top" Width="54" />
            <Label Content="Monto (Bs.)" Height="28" HorizontalAlignment="Left" Margin="542,161,0,0" Name="MontoLbl" VerticalAlignment="Top" Width="70" />

            <Label Content="Seleccionar" Height="28" HorizontalAlignment="Left" Margin="650,161,0,0" Name="SeleccionarLBl" VerticalAlignment="Top" />
            <Label Content="Total Adeudado       Bs." Height="28" HorizontalAlignment="Left" Margin="400,490,0,0" Name="label1" VerticalAlignment="Top" Width="131" />
            <Label Content="-" Height="28" HorizontalAlignment="Left" Margin="543,490,0,0" Name="TotalAmountLbl" VerticalAlignment="Top" Width="54" />
            <Label Content="Total a Cobrar          Bs." Height="28" HorizontalAlignment="Left" Margin="400,0,0,11" Name="label4" VerticalAlignment="Bottom" Width="131" />
            <Label Content="-" Height="28" HorizontalAlignment="Left" Margin="543,524,0,0" Name="AmountPayLbl" VerticalAlignment="Top" Width="54" />
            <Label Content="Manzano" Height="28" HorizontalAlignment="Left" Margin="79,111,0,0" Name="label3" VerticalAlignment="Top" />
            <Label Content="Socio" Height="28" HorizontalAlignment="Left" Margin="72,490,0,0" Name="label5" VerticalAlignment="Top" />
            <Label Content="Lote" HorizontalAlignment="Left" Margin="215,110,0,425" Name="label6" />
            <Label Name="SocioLbl" Content="-" Height="28" HorizontalAlignment="Left" Margin="172,490,0,0" VerticalAlignment="Top" />
            <Label Name="CiLbl" Content="-" Height="28" HorizontalAlignment="Left" Margin="172,524,0,0" VerticalAlignment="Top" />
            <ComboBox Name="ManzanoCbx" Height="23" HorizontalAlignment="Left" Margin="74,127,0,0" VerticalAlignment="Top" Width="68" SelectionChanged="ManzanoCbx_SelectionChanged" />
            <ComboBox Name="LoteCbx" IsEnabled="False" Height="23" HorizontalAlignment="Right" Margin="0,127,514,0" VerticalAlignment="Top" Width="68" SelectionChanged="LoteCbx_SelectionChanged" />
            <Label Content="Con Corte" Height="28" HorizontalAlignment="Left" Margin="650,124,0,0" Name="lblCorte" VerticalAlignment="Top" Foreground="Red" Visibility="Hidden" />
            <!--<Label Content="Descuento" Height="28" HorizontalAlignment="Left" Margin="542,111,0,0" Name="label7" VerticalAlignment="Top" Width="67" />-->
            <!--<ComboBox Height="23" HorizontalAlignment="Left" IsEnabled="False" Margin="540,0,0,411" Name="DescuentoCbx" VerticalAlignment="Bottom" Width="68" SelectedIndex="0">
                <ComboBoxItem Content="-" IsSelected="True" />
                <ComboBoxItem Content="10" />
                <ComboBoxItem Content="15" />
                <ComboBoxItem Content="20" />
                <ComboBoxItem Content="25" />
                <ComboBoxItem Content="30" />
            </ComboBox>-->
            <!--<ComboBox Height="23" HorizontalAlignment="Left" SelectedItem="0" Name="comboBox1" VerticalAlignment="Center" Width="120" SelectedIndex="0">
                <ComboBoxItem Content="-" />
                <ComboBoxItem Content="10" />
                <ComboBoxItem Content="15" />
                <ComboBoxItem Content="20" />
                <ComboBoxItem Content="25" />
                <ComboBoxItem Content="30" />
            </ComboBox>-->

        </Grid>
    </Grid>
</Page>